package com.edu.utils;

import java.io.File;

import com.edu.exam.activity.MyApllication;

import android.database.sqlite.SQLiteDatabase;

public class FileDB {
	
  private static SQLiteDatabase database;
  public static SQLiteDatabase getExamDB() {
	  if (database==null||!database.isOpen()) {
		  database = SQLiteDatabase.openDatabase(MyApllication.appRoot + File.separator
					+ "exam.db", null, SQLiteDatabase.OPEN_READWRITE);
	}
	  
	return database;
	
}
}
